<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>文章管理</h1>
	<a href="?a=add">发表文章</a>
	<table border="1" width="100%">
		<tr>
			<td>id</td>
			<td>标题</td>
			<td>栏目</td>
			<td>操作</td>
		</tr>
		<?php foreach ($data as $key => $value): ?>
			<tr>
				<td><?php echo $value['cid'];?></td>
				<td><?php echo $value['title'];?></td>
				<td><?php echo $value['cname'];?></td>
				<td>
					<a href="">修改</a>
					<a href="">删除</a>
				</td>
			</tr>	
		<?php endforeach ?>
		
	</table>
</body>
</html>